﻿using QQMusic.Helper;
using QQMusic.Model;
using QQMusic.View;
using QQMusic.ViewModel.Base;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace QQMusic.ViewModel
{
    public class VideoPageViewModel : ViewModelBase
    {
        #region 事件

        #endregion

        #region 属性
        public List<string> bitmapImages = new List<string>()
        {
            "/Image/background1.jpg",
            "/Image/background2.jpg",
            "/Image/background3.jpg",
            "/Image/background4.jpg",
            "/Image/background5.jpg",
        };

        public List<string> BitmapImages
        {
            get => bitmapImages;
            set
            {
                bitmapImages = value;
                OnPropertyChanged(nameof(BitmapImages));
            }
        }

        private ObservableCollection<MusicType> personals = new ObservableCollection<MusicType>()
        {
            new MusicType(){ ImagePath="/Image/background1.jpg", Musics="刚刚更新", Title="今日私享", SubTitle="今日私享" },
            new MusicType(){ ImagePath="/Image/background2.jpg", Musics="120万", Title="华语|心情匣子", SubTitle="心情匣子" },
            new MusicType(){ ImagePath="/Image/background3.jpg", Musics="129万", Title="欧美电音|梦想启航", SubTitle="梦想启航" },
            new MusicType(){ ImagePath="/Image/background4.jpg", Musics="210万", Title="华语|治愈系女生", SubTitle="治愈系女生" },
            new MusicType(){ ImagePath="/Image/background5.jpg", Musics="129万", Title="欧美电音|梦想启航", SubTitle="梦想启航" },
            new MusicType(){ ImagePath="/Image/background6.jpg", Musics="210万", Title="华语|治愈系女生", SubTitle="治愈系女生" },
        };

        public ObservableCollection<MusicType> Personals 
        { 
            get => personals;
            set 
            { 
                personals = value;
                OnPropertyChanged(nameof(Personals));
            }
        }
        #endregion
    }
}
